package fr.p10.miage.personnels.model;

public abstract class Personnel {

	private String nom;
	private String prenom;
	private int numeroSecuriteSociale;
	private Departement departement;

	public Personnel(String nom, String prenom, int numeroSecuriteSociale,
			Departement departement) {
		super();
		this.nom = nom;
		this.prenom = prenom;
		this.numeroSecuriteSociale = numeroSecuriteSociale;
		this.departement = departement;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public int getNumeroSecuriteSociale() {
		return numeroSecuriteSociale;
	}

	public void setNumeroSecuriteSociale(Integer numeroSecuriteSociale) {
		this.numeroSecuriteSociale = numeroSecuriteSociale;
	}

	public String toString() {
		return "Personnel [nom=" + nom + ", prenom=" + prenom
				+ ", numeroSecuriteSociale=" + numeroSecuriteSociale
				+ ", departement=" + departement.name() + "]";
	}

	public Departement getDepartement() {
		return departement;
	}

	public void setDepartement(Departement departement) {
		this.departement = departement;
	}

}